function SceneScene3(options) {
	this.options = options;
}

function copyReplace() {
    var p = document.getElementById("svec_hehe");
    var pclone = p.cloneNode(true);
    //pclone.getAttribute("position") = "relative";
    //pclone.setAttribute("top","31");
    //pclone.setAttribute("left","190");
    //pclone.setAttribute("id","svec_hehe");
    
    
    //document.body.appendChild(pclone);
    //document.getElementById("svecButton_Q633")["offsetParent"].appendChild(pclone);
    $('#svec_hehe').sfButton({text:['nowy']});
    pclone = document.getElementById("svec_hehe");
    //pclone["style"]["left"] = 250;
    //pclone["style"]["top"] = 40;
    //pclone["style"]["width"] = 200;
    pclone.children[1]["innerText"] = "heh";
    
    //alert(pclone["parentElement"]["style"]["left"] = 250);
    //printObject(pclone);
    
    var p2 = pclone.cloneNode(true);
    
    p2["style"]["top"] = 45;
    //p2["style"]["left"] = 270;
    pclone["parentElement"].appendChild(p2);
    
}



SceneScene3.prototype.initialize = function () {
	alert("SceneScene3.initialize()");
	// this function will be called only once when the scene manager show this scene first time
	// initialize the scene controls and styles, and initialize your variables here 
	// scene HTML and CSS will be loaded before this function is called
	$('#svecButton_N77A').sfButton({text:'Film'});
	$('#svecButton_Q633').sfButton({text:'Serial'});
    //$('#svec_hehe').sfButton({text:'Various', width:'120px'});
	
    this.container = GlobalContainer[0];
    this.buttonContainer = new UserControlGroup('buttons UCG',2,2);
    var clb4 = new SettingsTypeBtnClb('Scene4');
    var clb5 = new SettingsTypeBtnClb('Scene5');
    this.buttonContainer.registerObject(new ButtonUserControl($('#svecButton_N77A'),clb4),0,0);
    this.buttonContainer.registerObject(new ButtonUserControl($('#svecButton_Q633'),clb5),0,1);
    alert('Registering buttons to ' + this.container.logger.name);
    this.container.registerObject(this.buttonContainer,0,1);
    copyReplace();
}




SceneScene3.prototype.handleShow = function () {
	alert("SceneScene3.handleShow()");
	// this function will be called when the scene manager show this scene 
}

SceneScene3.prototype.handleHide = function () {
	alert("SceneScene3.handleHide()");
	// this function will be called when the scene manager hide this scene  
}

SceneScene3.prototype.handleFocus = function () {
	alert("SceneScene3.handleFocus()");
	// this function will be called when the scene manager focus this scene
}

SceneScene3.prototype.handleBlur = function () {
	alert("SceneScene3.handleBlur()");
	// this function will be called when the scene manager move focus to another scene from this scene
}

SceneScene3.prototype.handleKeyDown = function (keyCode) {
	alert("SceneScene3.handleKeyDown(" + keyCode + ")");
	// TODO : write an key event handler when this scene get focued
	  if(this.container != null)
        this.container.handleInput(keyCode);
}
